package com.cw.jeeyt.service.bo.process;

import java.io.Serializable;
import java.util.Date;

import org.flowable.engine.impl.persistence.entity.ProcessDefinitionEntityImpl;

import lombok.Data;

/**
 * 流程定义Entity
 *
 * @author liuruijun
 * @version 2018-08-02
 */
@Data
public class ReProcDef implements Serializable {

    private static final long serialVersionUID = 1L;
    protected String name;
    protected String key;
    protected String category;
    protected String categoryName;
    protected int version;
    protected String deploymentId;
    protected String resourceName;
    protected String diagramResourceName;
    protected int suspensionState;
    protected String deploymentTime;
    protected String remarks;    // 备注
    protected String createBy;    // 创建者
    protected Date createDate;    // 创建日期
    protected String updateBy;    // 更新者
    protected Date updateDate;    // 更新日期
    protected String delFlag;    // 删除标记（0：正常；1：删除；2：审核）
    private String id;

    public ReProcDef(ProcessDefinitionEntityImpl procDef) {
        this.id = procDef.getId();
        this.name = procDef.getName();
        this.key = procDef.getKey();
        this.category = procDef.getCategory();
        this.categoryName = categoryName;
        this.version = procDef.getVersion();
        this.deploymentId = procDef.getDeploymentId();
        this.resourceName = procDef.getResourceName();
        this.diagramResourceName = procDef.getDiagramResourceName();
        this.suspensionState = procDef.getSuspensionState();
    }
}


